Image processing device, image processing method, and recording medium

ABSTRACT

Provided is an image processing device including an image state detection unit which detects a state of a captured image after a processing for determining a captured image has been performed, and a trimming-decision processing unit which performs a trimming decision of the captured image based on a state of the captured image.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a continuation application of U.S. patentapplication Ser. No. 14/649,337, filed Jun. 3, 2015, which is a NationalStage Entry of Patent Application No. PCT/JP2013/080934 filed Nov. 15,2013, which claims priority from prior Japanese Patent Application JP2012-277954 filed in the Japan Patent Office Dec. 20, 2012, the entirecontents of which are hereby incorporated by reference.

TECHNICAL FIELD

The present disclosure relates to an image processing device, an imageprocessing method, and a recording medium.

BACKGROUND ART

Recently, imaging apparatuses such as a digital still camera are widelyprevalent, and it is possible to photograph an object using aface-detection technology, an auto focusing technology and the like.However, an adjustment of a composition at photographing depends on auser's skill, and a photographed image is not always well balanced incomposition. Therefore, in recent years, there has been proposed atechnology in which an extraction of a human face or an object, atracking and others are performed, and a trimming (clipping) of it isautomatically performed so as to provide a good composition.

For example, Patent Literature 1 discloses technology in which it isassumed that a main object is extracted from an image, and noise isadded to a region for the position of the main object within the image.

CITATION LIST Patent Literature

-   -   Patent Literature 1: JP 2008-187260A

SUMMARY OF INVENTION Technical Problem

Searching for an object on the basis of the position at which a focus ismatching within an angular field, and performing trimming in accordancewith the searched object, can be considered as an algorithm whichextracts an object. However, in the case where this method is applied,for example, in the case where a user changes the angular field in astate where the focus is fixed to the position of an object by a focuslock or the like, the object will be extracted according to the positionof the focus, and so there will be the possibility that an object isextracted which is different from the object to which the focus wasoriginally matched, in accordance with the change of the angular field.Accordingly, there will be the problem in which an object is extractedwhich is different from an object intended by a user to be captured bymatching the focus, and is not that intended by the user to beextracted. Similarly, in the case where a captured image has changed bythe orientation of an imaging apparatus changing after a processing fordetermining a captured image has been performed or the like, there willbe the problem in which it is not that intended by the user to beextracted.

Accordingly, performing optimal trimming, without an object beingextracted which is different from that intended by a user, has beensought after.

Solution to Problem

According to the present disclosure, there is provided an imageprocessing device including an image state detection unit which detectsa state of a captured image after a processing for determining acaptured image has been performed, and a trimming-decision processingunit which performs a trimming decision of the captured image based on astate of the captured image.

A trimming processing unit which performs a trimming processing of thecaptured image based on the trimming decision may be further included.

The processing for determining a captured image may be a processing forlocking a focus of the captured image.

The image state detection unit may detect a change of a state of thecaptured image due to a change of an angular field of the capturedimage, or a change of a state of the captured image due to a change oforientation of an device which captures the captured image.

The trimming-decision unit may decide that trimming of the capturedimage is not performed in a case where the image state detection unithas detected a change of a state of the captured image.

The image state detection unit may detect whether or not the capturedimage is a uniform image.

The trimming-decision unit may decide that trimming of the capturedimage is not performed in a case where the image state detection unithas detected that the captured image is a uniform image.

The image state detection unit may detect a dissimilarity between atrimming image of the captured image determined in accordance with theprocessing for determining a captured image, and an original image priorto trimming.

The trimming-decision unit may decide that trimming of the capturedimage is not performed in a case where the image state detection unithas detected that a difference between a trimming image of the capturedimage and an original image prior to trimming is equal to or less than aprescribed value.

According to the present disclosure, there is provided an imageprocessing method including detecting a state of a captured image aftera processing for determining a captured image has been performed, andperforming a trimming decision of the captured image based on a state ofthe captured image.

According to the present disclosure, there is provided a recordingmedium having a program recorded thereon, the program causing a computerto execute a process, the process including detecting a state of acaptured image after a processing for determining a captured image hasbeen performed, and performing a trimming decision of the captured imagebased on a state of the captured image.

Advantageous Effects of Invention

According to an embodiment of the present disclosure, it becomespossible to perform optimal trimming, without an object being extractedwhich is different from that intended by a user.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a cross-sectional view which shows a schematic configurationof an imaging apparatus according to each of the embodiments of thepresent disclosure.

FIG. 2 is a flow chart which shows the main processing performed by adigital signal processing unit.

FIG. 3 is a schematic diagram which shows the processes from a focuslock up to a trimming decision.

FIG. 4 is a flow chart which shows the processing of a second embodimentof the present disclosure.

FIG. 5 is a schematic diagram which shows the processes from a focuslock up to a trimming decision.

FIG. 6 is a flow chart which shows the processing of a third embodimentof the present disclosure.

FIG. 7 is a schematic diagram which shows the processes from a focuslock up to a trimming decision.

DESCRIPTION OF EMBODIMENTS

Preferred embodiments of the present disclosure will be described indetail below with reference to the accompanying drawings. Here, in thedescription and drawings, as for components having a substantiallyidentical function and configuration, an identical reference sign isassigned, and thereby, repetitive explanations therefor are omitted.

Note that, the description will be given in the following order.

1. First Embodiment

1.1. Configuration example of the imaging apparatus

1.2. Main processing performed by the digital signal processing unit

1.3. Trimming decision based on an image state change

2. Second Embodiment

2.1. Outline of the second embodiment

2.2. Processing of the second embodiment

2.3. Trimming decision based on an image state change

3. Third Embodiment

3.1. Outline of the third embodiment

3.2. Processing of the third embodiment

3.3 Trimming decision based on an image state change

1. First Embodiment

[1.1. Exemplary Configuration of Imaging Apparatus]

First, a schematic configuration of an imaging apparatus 100 accordingto embodiments of the present disclosure will be explained withreference to FIG. 1. As shown in FIG. 1, the imaging apparatus 100includes a lens 102, a lens driver 103, a diaphragm 104, an imagingelement 106, a timing generator (TG) 107, an analog signal processingunit 108, a gyro sensor 110, an A/D conversion unit 112, a systemcontroller 114, a display unit (LCD) 116, a shutter button (operationmember) 118 and a digital signal processing unit 120. Also, a recordingmedium 130 is externally connected to the imaging apparatus 100.

The digital signal processing unit 120 is configured to include, forexample, a central processing unit (CPU), and includes a signal-savingprocessing unit 122, an image state detection processing unit 124, atrimming-decision processing unit 126, a trimming processing unit 128,and a memory 129. For example, by programs that are stored in a memoryor the like, the central processing unit (CPU) can function as thecomponents of the digital signal processing unit 120. The programs canbe recorded in a memory included in the imaging apparatus 100, a memorythat is externally connected to the imaging apparatus 100, or the like.

In the configuration shown in FIG. 1, an object image is formed on animaging surface of the imaging element 106 by the lens 102. The lens 102and the diaphragm 104 are driven by the lens driver 103. The lens driver103 drives the lens 102 to regulate its focus and zooming (angularfield). Furthermore, the lens driver 103 drives the diaphragm toregulate the amount of light for an object.

The imaging element 106, which is a CMOS sensor, a CCD sensor or thelike, performs a photoelectric conversion of the object image and thenoutputs it as image signals. The timing generator 107 generates timingsignals in driving of the imaging element 106. The analog signalprocessing unit 108 performs an analog signal processing to the imagesignals. The gyro sensor 110 detects a motion of the imaging apparatus100. The A/D conversion unit 112 converts the image signals, which areanalog signals, into digital image data. Also, the A/D conversion unit112 converts gyro signals, which are analog signals, into digital data.

The image data that the A/D conversion unit 112 generates by A/Dconversion are transmitted to the digital signal processing unit 120.Also, the gyro signals that the A/D conversion unit 112 generates by A/Dconversion are transmitted to the digital signal processing unit 120.The signal-saving processing unit 122 of the digital signal processingunit 120 performs a processing to save an image data to the memory 129.The image state detection unit 124 extracts a state of the image fromthe image data.

The trimming-decision processing unit 126 decides (determines) trimmingin accordance with a main object, and decides trimming of an objectimage, based on the state of the image detected by the image statedetection unit 124. The trimming processing unit 128 performs a trimmingprocessing, based on a decision result of the trimming-decisionprocessing unit 126. A trimming image to which the trimming processinghas been performed, and an original image prior to the trimmingprocessing being performed, are displayed on the display unit 116.

The system controller controls the lens driver 103, the timing generator107, the analog signal processing unit 108, and the digital signalprocessing unit 120.

[1.2. Main Processing Performed by the Digital Signal Processing Unit]

Next, the main processing performed by the digital signal processingunit 120 will be described based on the flow chart of FIG. 2. First, instep S10, the shutter button 118 is half-pressed by a user. In this way,a focus operation which matches the focus to an object is performed.Next, in step S12, it is decided whether or not the focus is matching anintended object. In the case where the focus is matching an intendedobject, since a processing for determining a captured image is to beperformed, it proceeds next to step S14. On the other hand, in the casewhere the focus is not matching an intended object, it stands by at stepS12.

In step S14, it is decided whether a state of the image is unchanged, ina state where the focus is matching an intended object. Here, a changeof the state of the image includes a change of the angular field due toa zoom, a change due to a change of orientation (pan tilt operation orthe like) of the imaging apparatus 100 or the like. A change of state ofthe image is decided by the image state detection unit 124. The imagestate detection unit 124 stores the color and luminance of a number ofregions within a captured image, and judges that a state of the imagehas changed if there is a change in the color or luminance of a sameregion. Further, the image state detection unit 124 monitors a gyrosignal, and judges that the state of the image has changed when there isa large change in this value. In addition, the image state detectionunit 124 can judge that the state of the image has changed in the casewhere information of a zoom has changed, based on information of thezoom (focal length information). In step S14, in the case where thestate of the image has not changed, it proceeds to step S16, and in thecase where the state of the image has changed, it proceeds to step S18.

In step S16, since the state of the image has not changed, it is decidedthat trimming is to be performed in accordance with an intended object.On the other hand, in step S18, since the state of the image haschanged, a decision is performed to cancel trimming. These decisions areperformed by the trimming-decision processing unit 126. After step S16,it proceeds to step S19. In step S19, the trimming processing unit 128performs a trimming processing, based on a decision result of thetrimming-decision processing unit 126.

[1.3. Trimming Decision Based on an Image State Change]

Next, a trimming decision based on a change of the image state,according to the present embodiment, will be described in detail basedon FIG. 3. FIG. 3 is a schematic diagram which shows the processes froma focus lock up to a trimming decision. First, as shown in image 1, auser matches a focus position F to a “flower” positioned in the center,and performs a focus lock by half-pressing the shutter button 118. Inthis way, a trimming frame T is set by matching to the object “flower”which has been focus locked.

Next, as shown in image 2, the state of the image in a state which hasbeen focus locked is changed. In the example of image 2, the orientationof the lens 102 of the imaging apparatus 100 has moved to the right,with respect to the “flower” which is the object, and the “flower” hasmoved to the left side within the screen.

Accordingly, in the next image 3, a decision is performed to canceltrimming, by detecting a change of the state of the image. In this way,the trimming frame T is deleted.

As described above, in the case where the state of the image in a statewhich has been focus locked has changed, having to perform trimming,which is not suitable for the “flower” which is the main object, can bereliably avoided by cancelling trimming.

According to the first embodiment such as described above, in the casewhere the state of an image has changed after determining a main object,the setting of the trimming frame T is cancelled. Therefore, it becomespossible to reliably suppress having to perform trimming for an objectwhich is not intended by a user. In this way, it becomes possible toperform trimming which is more suitable for a user.

2. Second Embodiment

[2.1. Outline of the Second Embodiment]

Next, a second embodiment of the present disclosure will be described.In the second embodiment, in the case where the state of the image hasbeen detected by the image state detection processing unit 124, and inthe case where the trimming image is a uniform image, trimming iscanceled. Trimming is usually performed for enlarging and displaying amain object within a screen frame, in which the main object exists. Onthe other hand, in the case where an image is uniform, since a mainobject does not exists, the necessity does not occur to again performtrimming. Accordingly, in the second embodiment, in the case where animage to be captured is a uniform image (for example, an image such asthe sky and sea, the ground, a lawn of a park), a processing isperformed to cancel trimming. In this way, in the case of a uniformimage in which a main object does not exist, it is possible to suppresshaving to perform trimming.

[2.2. Processing of the Second Embodiment]

FIG. 4 is a flow chart which shows the processing of the secondembodiment. First, in step S20, the shutter button 118 is half-pressedby a user. In this way, a focus operation which matches the focus to anobject is performed. Next, in step S22, it is decided whether or not thefocus is matching an intended object. In the case where the focus ismatching an intended object, it proceeds next to step S24. On the otherhand in the case where the focus is not matching an intended object, itstands by at step S22.

In step S24, it is decided whether the trimming image is ununiform, in astate where the focus is matching an intended object. Here, whether ornot the trimming image is uniform is decided by the image statedetection processing unit 124. The image state detection processing unit124 analyses the distribution of the color and luminance of the trimmingimage, for example, and judges that the trimming image is uniform ifthis distribution is biased. In the case where the trimming image is notuniform, it proceeds to step S26, and in the case where it is uniform,it proceeds to step S28.

In step S26, since the trimming image is not a uniform image, it isdecided that trimming is to be performed. On the other hand, in stepS28, since the trimming image is a uniform image, a decision isperformed to cancel trimming. These decisions are performed by thetrimming-decision processing unit 126. After step S28, it proceeds tostep S29. In step S29, the trimming processing unit 128 performs atrimming processing, based on a decision result of the trimming-decisionprocessing unit 126.

[2.3. Trimming Decision Based on an Image State Change]

Next, a trimming decision based on a change of the image state,according to the present embodiment, will be described in detail basedon FIG. 5. FIG. 5 is a schematic diagram which shows the processes froma focus lock up to a trimming decision. First, as shown in image 1, auser matches a focus position F to a “lawn” of the ground on the screenlower side, and performs a focus lock by half-pressing the shutterbutton 118. In this way, a trimming frame T is set by matching to theobject “lawn” which has been focus locked.

Next, it is decided whether or not the image (trimming image) within thetrimming frame T in a state which has been focus locked is uniform. Inthe example of image 1, the “lawn” within the trimming frame T is auniform green color, and the trimming image is a uniform image.Therefore, a decision is performed to cancel trimming by the trimmingframe T. In this way, the trimming frame T is deleted from on thescreen.

As described above, in the case where the trimming image is a uniformimage, having only a uniform image trimmed can be reliably avoided bycancelling trimming.

According to the second embodiment such as described above, in the casewhere the trimming image is a uniform image, trimming is cancelled, andso it becomes possible to reliably avoid having only a uniform imagetrimmed.

3. Third Embodiment

[3.1. Outline of the Third Embodiment]

Next, a third embodiment of the present disclosure will be described. Inthe third embodiment, in the case where the state of the image has beendetected by the image state detection processing unit 124, and in thecase where the size of an original image and the size of a trimmingimage are approximately the same, trimming is canceled. In the casewhere the trimming image has been determined in accordance with a mainobject, if the size of an original image prior to trimming isapproximately the same as that of a trimming image, the necessity forperforming trimming will be low. Accordingly, in the third embodiment,in the case where the size of an original image and the size of atrimming image are approximately the same, trimming is cancelled.

[3.2. Processing of the Third Embodiment]

FIG. 6 is a flow chart which shows the processing of the thirdembodiment. First, in step S30, the shutter button 118 is half-pressedby a user. In this way, a focus operation which matches the focus to anobject is performed. Next, in step S32, it is decided whether or not thefocus is matching an intended object. In the case where the focus ismatching an intended object, it proceeds next to step S34. On the otherhand, in the case where the focus is not matching an intended object, itstands by at step S32.

In step S34, it is decided whether or not the size of the trimming imageis smaller than the size of the original image by a certain ratio ormore, in a state where the focus is matching an intended object. Here,whether or not the size of the trimming image is smaller than the sizeof the original image by a certain ratio or more is decided by comparingthe size of the trimming image and the size of the original image, andobtaining a difference, by the image state detection processing unit124. In the case where the size of the trimming image is smaller thanthe size of the original image by a certain ratio or more, it proceedsto step S36, and in the case where the size of the trimming image is notsmaller than the size of the original image by a certain ratio or more,it proceeds to step S38.

In step S36, since the size of the trimming image is smaller than thesize of the original image by a certain ratio or more, it is decidedthat trimming is to be performed. On the other hand, in step S38, sincethe size of the trimming image is not smaller than the size of theoriginal image by a certain ratio or more, it is decided to canceltrimming. These decisions are performed by the trimming-decisionprocessing unit 126. After step S36, it proceeds to step S39. In stepS39, the trimming processing unit 128 performs a trimming processing,based on a decision result of the trimming-decision processing unit 126.

[3.3. Trimming Decision Based on an Image State Change]

Next, a trimming decision based on a change of the image state,according to the present embodiment, will be described in detail basedon FIG. 7. FIG. 7 is a schematic diagram which shows the processes froma focus lock up to a trimming decision. First, as shown in image 1, auser matches a focus position F to a “drink” in the screen center, andperforms a focus lock by half-pressing the shutter button 18. In thisway, a trimming frame T is set by matching to the object “drink” whichhas been focus locked.

Next, it is decided whether or not the image (trimming image) within thetrimming frame T in a state which has been focus locked is smaller thanthe original image O by a certain ratio or more. In the example of image1, the size of the trimming frame T is slightly smaller than the size ofthe original image O, and is not smaller than the original image O by acertain ratio or more. Therefore, a decision is performed to canceltrimming by the trimming frame T.

According to the third embodiment, such as described above, in the casewhere the trimming image is not smaller than the original image by acertain ratio or more, trimming is cancelled, and so it becomes possibleto reliably avoid having to perform unnecessary trimming.

Note that, in each of the above described embodiments, while a focuslock has been illustrated by half-pressing the shutter button 118, asthe processing for determining a captured image, the processing fordetermining a captured image is not limited to this. For example, it ispossible to cancel trimming in accordance with the state of the image,after a trimming frame has been determined by determining an objectfocused in a continuous AF mode as a main object.

The preferred embodiments of the present disclosure have been describedabove with reference to the accompanying drawings, whilst the presentdisclosure is not limited to the above examples, of course. A personskilled in the art may find various alterations and modifications withinthe scope of the appended claims, and it should be understood that theywill naturally come under the technical scope of the present disclosure.

Additionally, the present technology may also be configured as below.

(1)

An image processing device including:

-   -   an image state detection unit which detects a state of a        captured image after a processing for determining a captured        image has been performed; and    -   a trimming-decision processing unit which performs a trimming        decision of the captured image based on a state of the captured        image.

(2)

The image processing device according to (1), further including:

-   -   a trimming processing unit which performs a trimming processing        of the captured image based on the trimming decision.

(3)

The image processing device according to (1),

-   -   wherein the processing for determining a captured image is a        processing for locking a focus of the captured image.

(4)

The image processing device according to (1),

-   -   wherein the image state detection unit detects a change of a        state of the captured image due to a change of an angular field        of the captured image, or a change of a state of the captured        image due to a change of orientation of an device which captures        the captured image.

(5)

The image processing device according to (4),

-   -   wherein the trimming-decision unit decides that trimming of the        captured image is not performed in a case where the image state        detection unit has detected a change of a state of the captured        image.

(6)

The image processing device according to (1),

-   -   wherein the image state detection unit detects whether or not        the captured image is a uniform image.

(7)

The image processing device according to (4),

-   -   wherein the trimming-decision unit decides that trimming of the        captured image is not performed in a case where the image state        detection unit has detected that the captured image is a uniform        image.

(8)

The image processing device according to (1),

-   -   wherein the image state detection unit detects a dissimilarity        between a trimming image of the captured image determined in        accordance with the processing for determining a captured image,        and an original image prior to trimming.

(9)

The image processing device according to (8),

-   -   wherein the trimming-decision unit decides that trimming of the        captured image is not performed in a case where the image state        detection unit has detected that a difference between a trimming        image of the captured image and an original image prior to        trimming is equal to or less than a prescribed value.

(10)

An image processing method including:

-   -   detecting a state of a captured image after a processing for        determining a captured image has been performed; and    -   performing a trimming decision of the captured image based on a        state of the captured image.

(11)

A recording medium having a program recorded thereon, the programcausing a computer to execute a process, the process including:

-   -   detecting a state of a captured image after a processing for        determining a captured image has been performed; and    -   performing a trimming decision of the captured image based on a        state of the captured image.

REFERENCE SIGNS LIST

-   100 apparatus-   124 image state detection processing unit-   126 trimming-decision processing unit-   128 trimming processing unit

What is claimed is:
 1. An image processing device, comprising: one ormore processors configured to: determine a state of a captured image,wherein the state of the captured image corresponds to at least one of acolor of each of a plurality of regions within the captured image,luminance of each of the plurality of regions within the captured image,or a gyro signal associated with the captured image; determine atrimming image in the captured image is one of a uniform image or anon-uniform image based on the state of the captured image; determine,based on the determination the trimming image is the non-uniform image,a trimming process of the captured image is to be executed; trim thecaptured image based on the determination the trimming image is thenon-uniform image and the determination the trimming process is to beexecuted; and cancel the trimming process based on the determination thetrimming image is the uniform image, wherein the determination thetrimming image is the uniform image is based on a biased distribution ofeach of a color and luminance of the trimming image.
 2. The imageprocessing device according to claim 1, wherein the one or moreprocessors are further configured to determine the trimming image is theone of the uniform image or the non-uniform image based on at least oneof the color of each of the plurality of regions or the luminance ofeach of the plurality of regions.
 3. The image processing deviceaccording to claim 1, wherein the one or more processors are furtherconfigured to: determine a change of the state of the captured imagebased on an angular field of the captured image; and cancel the trimmingprocess based on the change of the state of the captured image.
 4. Theimage processing device according to claim 1, wherein the one or moreprocessors are further configured to detect a change of the state of thecaptured image based on a change of orientation of a device thatcaptures the captured image.
 5. The image processing device according toclaim 1, wherein the one or more processors are further configured tocompare the trimming image with the captured image.
 6. The imageprocessing device according to claim 5, wherein the one or moreprocessors are further configured to: determine a difference between thetrimming image and the captured image based on the comparison; andcancel the trimming process based on the difference that is equal to orless than a threshold value.
 7. The image processing device according toclaim 1, wherein the one or more processors are further configured tocancel the trimming process based on a ratio of a size of the capturedimage and a size of the trimming image, and the ratio is one of equal toor greater than a threshold value.
 8. An image processing method,comprising: determining a state of a captured image, wherein the stateof the captured image corresponds to at least one of a color of each ofa plurality of regions within the captured image, luminance of each ofthe plurality of regions within the captured image, or a gyro signalassociated with the captured image; determining a trimming image in thecaptured image is one of a uniform image or a non-uniform image based onthe state of the captured image; determining, based on the determinationthe trimming image is the non-uniform image, a trimming process of thecaptured image is to be executed; trimming the captured image based onthe determination the trimming image is the non-uniform image and thedetermination the trimming process is to be executed; and cancelling thetrimming process based on the determination the trimming image is theuniform image, wherein the determination the trimming image is theuniform image is based on a biased distribution of each of a color andluminance of the trimming image.
 9. The image processing methodaccording to claim 8, further comprising determining the trimming imageis the one of the uniform image or the non-uniform image based on atleast one of the color of each of the plurality of regions or theluminance of each of the plurality of regions.
 10. The image processingmethod according to claim 8, further comprising: detecting a change ofthe state of the captured image based on an angular field of thecaptured image; and cancelling the trimming process based on thedetection of the change of the state.
 11. The image processing methodaccording to claim 8, further comprising locking a focus of the capturedimage to determine the captured image.
 12. The image processing methodaccording to claim 8, further comprising detecting a change of the stateof the captured image based on a change of orientation of a device whichcaptures the captured image.
 13. The image processing method accordingto claim 8, further comprising comparing the trimming image with thecaptured image.
 14. The image processing method according to claim 13,further comprising: determining a difference between the trimming imageand the captured image based on the comparison; and determining thetrimming process is to be canceled based on the difference that is oneof equal to or less than a threshold value.
 15. A non-transitorycomputer-readable medium having stored thereon computer-executableinstructions that, when executed by a processor, cause the processor toexecute operations, the operations comprising: determining a state of acaptured image, wherein the state of the captured image corresponds toat least one of a color of each of a plurality of regions within thecaptured image, luminance of each of the plurality of regions within thecaptured image, or a gyro signal associated with the captured image;determining a trimming image in the captured image is one of a uniformimage or a non-uniform image based on the state of the captured image;determining, based on the determination the trimming image is thenon-uniform image, a trimming process of the captured image is to beexecuted; trimming the captured image based on the determination thetrimming image is the non-uniform image and the determination thetrimming process is to be executed; and cancelling the trimming processbased on the determination the trimming image is the uniform image,wherein the determination the trimming image is the uniform image isbased on a biased distribution of each of a color and luminance of thetrimming image.